package com.foton.smsserver.provider;

import com.foton.bpc.all.config.annotion.BpcService;
import com.foton.bq.service.api.sms.SmsService;
import lombok.extern.slf4j.Slf4j;

import java.util.UUID;

/**
 * @Author RenPu
 * @Date 2023/6/5 15:34
 * @Version 1.0
 * @Description:
 **/

@Slf4j
@BpcService  //引入自研rpc注解
public class SmsServiceImpl implements SmsService {
    @Override
    public String send(String phone,String msg) {
        log.info("发送短信："+phone+":"+msg);
        return "短信发送成功"+ UUID.randomUUID();
    }
}
